/** Colored board squares as an embedded SVG */
cg-board {
    background-image: url('../imgs/xiangqi.png');
}

/** Interactive board square colors */
cg-board square.move-dest {
  background: radial-gradient(rgba(20, 85, 30, 0.5) 23%, transparent calc(23% + 1px),  transparent 0);
  pointer-events: auto;
}
cg-board square.premove-dest {
  background: radial-gradient(rgba(20, 30, 85, 0.5) 22%, #203085 0, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0) 0);
}
cg-board square.oc.move-dest {
  background: radial-gradient(transparent 0%, transparent 80%, rgba(20, 85, 0, 0.3) 80%);
}
cg-board square.oc.premove-dest {
  background: radial-gradient(transparent 0%, transparent 80%, rgba(20, 30, 85, 0.2) 80%);
}
cg-board square.move-dest:hover {
  background: rgba(20, 85, 30, 0.3);
}
cg-board square.premove-dest:hover {
  background: rgba(20, 30, 85, 0.2);
}
cg-board square.last-move {
  will-change: transform;
  background-color: rgba(155, 199, 0, 0.41);
}
cg-board square.selected {
  background-color: rgba(20, 85, 30, 0.5);
}
cg-board square.check {
  background: radial-gradient(ellipse at center, rgba(255, 0, 0, 1) 0%, rgba(231, 0, 0, 1) 25%, rgba(169, 0, 0, 0) 89%, rgba(158, 0, 0, 0) 100%);
}
cg-board square.current-premove {
  background-color: rgba(20, 30, 85, 0.5);
}
  
  /** Alternating colors in rank/file labels */
  .cg-wrap.orientation-white coords.ranks coord:nth-child(2n) {
    color: #f0d9b5;
  }
  .cg-wrap.orientation-white coords.ranks coord:nth-child(2n + 1) {
    color: #b58863;
  }
  .cg-wrap.orientation-white coords.files coord:nth-child(2n) {
    color: #b58863;
  }
  .cg-wrap.orientation-white coords.files coord:nth-child(2n + 1) {
    color: #f0d9b5;
  }
  
  .cg-wrap.orientation-black coords.ranks coord:nth-child(2n) {
    color: #f0d9b5;
  }
  .cg-wrap.orientation-black coords.ranks coord:nth-child(2n + 1) {
    color: #b58863;
  }
  .cg-wrap.orientation-black coords.files coord:nth-child(2n) {
    color: #f0d9b5;
  }
  .cg-wrap.orientation-black coords.files coord:nth-child(2n + 1) {
    color: #b58863;
  }